package com.cy.ppj.model.doc;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @description: 实名验证
 * @author: Ocean
 * @create: 2018-09-12 14:28
 **/
@Data
@Document(collection = "certification_info")
@CompoundIndexes({
        @CompoundIndex(name = "idx_time", def = "{'createTime': -1}")
})
public class CertificationInfo {

    @Id
    private String id;

    @Indexed(unique = true)
    private String idCard;

    @Indexed
    private String name;

    private Object data;

    private Date createTime;
}
